package com.hjm.mall.dao;

import com.hjm.mall.entity.Address;

import java.util.List;

public interface AddressMapper {
    int insert(Address address);
    int delete(int id);
    int update(Address address);
    Address getAddressById(int id);
    List<Address> getAddressListByUserId(Long userId);
    Address getAddressListByUserIdDefault(Long userId);
    // 清除默认地址
    int clearDefaultByUserId(Long userId);
}
